package com.smart.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 电子券信息表
 * 
 * @author zhouwc
 * @email zhouwenchao@smart.net.cn
 * @date 2019-07-28 10:30:19
 */
@Data
public class EcpInfoDO implements Serializable {
	private static final long serialVersionUID = 1L;
	//电子券编号
	private Long ecpId;
	//订单编号
	private Long orderId;
	//优惠券编号
	private Long cpId;
	//优惠券名称
	private String cpName;
	//获取电子券的渠道com.smart.constants.EcpObtainType
	private String obtainType;
	//所属平台
	private Integer platId;
	private String platName;
	//所属商户
	private Integer merchantId;
	private String merchantName;
	//所属省
	private String provinceNum;
	//所属市
	private String cityNum;
	//券码
	private String ecpCode;
	//金额
	private BigDecimal ecpMoney;
	//有效期起
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss ")
	private Date validStart;
	//有效期止
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss ")
	private Date validEnd;
	//生成时间
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss ")
	private Date genTime;
	//生成平台
	private String genPlatId;
	//生成门店
	private String genShopId;
	//状态
	private Integer ecpFlag;
	private String ecpFlagDesc;
	//退款状态
	private String refundStateDesc;
	//发放时间
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss ")
	private Date sendTime;
	//收券人类型
	private Integer recManType;
	//收券人编号
	private String recManId;
	//收券人
	private String recManName;
	//作废时间
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss ")
	private Date obsoleteTime;
	//作废人
	private String obsoleteBy;
	//作废原因
	private String obsoleteInfo;
	//核销时间
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss ")
	private Date useTime;
	//核销门店
	private Integer useShopId;
	//核销人
	private Integer useShopUser;
	//核销人
	private String useShopUserName;
	//核销同步时间
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss ")
	private Date useSyncTime;
	//备注
	private String remark;
	//券应用类型
	private String typePlat;
	//券种类
	private String typeCode;
	//过期配置
	private String expiredConf;
	//乐观锁
	private Integer version;
	//退款状态
	private Integer refundState;
	//退款时间
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss ")
	private Date refundDatatime;
	//退款人
	private Integer refundMan;
	//券简介
	private String cpContent;
	//实际价值-商城售价
	private BigDecimal costFee;
	//核销价值-券面价
	private BigDecimal payFee;
	//会员手机号
	private String phone;
	//商户编码
	private String merchantNum;
	//加油站编码
	private String  stationNum;
	//加油站名称
	private String stationName;
	//核销门店
	private String useShopName;
	//有效日期
	private String validValue;
	//派券人
	private String userName;
	//派券人
	private String sendUserName;
	//派券人id
	private Integer sendUserId;
	private Integer sendStationUser;
	//核销人
	private String useUserName;
	//发券加油站
	private String station;
	private Integer sendStationId;
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss ")
	private Date sendTimeStart;
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date sendTimeEnd;
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date useTimeStart;
	@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
	private Date useTimeEnd;
	private String provinceName;
	private String cityName;
	private String typePlatDesc;
	private String typeCodeDesc;
	private Integer shopId;
	private String shopNum;

	private String sendShopNum;
	private String useShopNum;

	private String sendStationUserName;

	private String sendStationSame;
	//数量
	private Integer num;
	//经营类目
	private Integer category;
	//到期日期字符串
	private String validEndStr;


	private String useCityName;


}
